class CQueue:

    def __init__(self):
        self.sk1 = []


    def appendTail(self, value: int) -> None:
        self.sk1.insert(0, value);


    def deleteHead(self) -> int:
        if len(self.sk1):
            return self.sk1.pop();
        return -1;
